package com.gxa.mapper;

import com.gxa.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RecepitPayMapper {

    int queryCount(@Param("param1") int param1,
                   @Param("param2") int param2,
                   @Param("clientType") String clientType,
                   @Param("msg") String msg);

    List<Customer> queryClientByMsg(@Param("param1") int param1,
                                    @Param("param2") int param2,
                                    @Param("clientType") String clientType,
                                    @Param("msg") String msg);

    List<Map> queryKHType();

    List<Map> queryJSType();

    List<Map> queryPayType();

    Integer queryGYSListCount(Map map);

    List<Supplier> queryGYSList(Map map);

    List<Map> queryGYSType();

    Integer querySkdYd(Map map);

    List<Receipt_Sales> querySkdYdList(Map map);

    Integer queryFkdYd(Map map);

    List<Receipt_Purchase> queryFkdYdList(Map map);

    List<Map> querySRType();

    List<Map> queryZCType();

    Integer querySkdCount(Map map);

    List<Receipt_Pay> querySkdList(Map map);

    Integer queryFkdCount(Map map);

    List<Receipt_Pay> queryFkdList(Map map);

    Receipt_Pay receiptSkd(String num);

    List<Receipt_Sales> receiptSales(String num);

    List<Receipt_Purchase> receiptPurchase(String num);

    int addReceiptPay(Receipt_Pay receipt_pay);

    int addPayaccounts(@Param("pay_id") String receipt_pay_id, @Param("list") List<Payaccount> payaccounts);

    int updatereceiptSales(@Param("pay_id") String receipt_pay_id, @Param("list") List<Receipt_Sales> receipt_sales);

    int addReceiptPayFkd(Receipt_Pay receipt_pay);

    int updatereceiptPurchase(@Param("pay_id") String receipt_pay_id, @Param("list") List<Receipt_Purchase> receipt_purchase);

    int addOtherPay(Otherpay otherpay);

    int addOtherpayList(@Param("pay_id") String otherpay_id, @Param("list") List<Receipt_Otherpay> otherpays);

    List<Otherpay> queryOtherPayList(Integer status);

    Otherpay qeryDetailsOtherPay(String num);
}
